###create bean,this is a class
#include("/template/java_copyright.include")
package #(basepackage).service;

import com.lambkit.core.Lambkit;
import com.lambkit.db.DbPool;
import com.lambkit.db.AbstractDaoService;
import com.lambkit.db.IRowDao;
import #(basepackage).#(moduleName)Config;
import #(basepackage).row.#(classname);

#include("/template/java_author.include")
public class #(classname)Service extends AbstractDaoService<#(classname)> {

	public static #(classname)Service of() {
		return Lambkit.get(#(classname)Service.class);
	}

	public IRowDao<#(classname)> dao() {
		String dbPoolName = Lambkit.config(#(moduleName)Config.class).getDbPoolName();
		return DbPool.use(dbPoolName).dao(#(classname).class);
	}

	public IRowDao<#(classname)> dao(String dbPoolName) {
		return DbPool.use(dbPoolName).dao(#(classname).class);
	}

}
